package com.ihg.hiex.admin.dao.session;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.ihg.hiex.entity.session.Session;
import com.ihg.hiex.entity.session.during.SessionFinanceManagement;
import com.ihg.hiex.entity.user.Delegate;

/**
 * 
 * @author dan
 *
 */
@Dao("hibernate")
public interface SessionFinanceManagementDao {
    
    /**
     * 
     * @param session
     * @param delegate
     * @return
     */
    @Query("FROM SessionFinanceManagement WHERE disabled = false AND session = :session AND delegate = :delegate")
    public SessionFinanceManagement load(@Variable("session")Session session, @Variable("delegate") Delegate delegate);
    
}
